package cn.zhuama.org.service;

import cn.zhuama.basic.util.PageList;
import cn.zhuama.org.domain.Department;
import cn.zhuama.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {
    void add(Department department);

    void del(Long id);

    void update(Department department);

    Department queryOne(Long id);

    List<Department> findAll();
    /**
     * 分页查询
     * @param query
     * @return
     */
    PageList<Department> queryPage(DepartmentQuery query);
}
